added scrollToView functionality