modified link:remove to avoid orphan links
displaying of user bar on login-logout events are added