hiding sync button and logout button