changed css styling and added click function to remove mainview