updated links to history and admin.
fixed logout() to trigger