corrected the view behaviour