Mayor considers legal action after vote of no confidence