begin restricting code height and scrolling relevant portion into view