added base template for logged in users, modified base