add sidebar and display avatar if user logged in