float user avatar left, add logout link, cleanup code