added end function to controller to ensure heights
trial theme2