Improve layout of users.

Fix user event handlers. Close open user if another one is opened for
editing.