Changes layout in index and profile