Fixed it so I use css for changing view