Implemented CSS viewheight and added instant height class