adds sidebar and user logged status on the theme template