added a base template with menu. fixed a profile bug with redirects loading wrong view