fixing some stuff with the view