fixed bug on logout/ userinfo buttons

event handler is set to the whole button now.