added hide of options on scroll
introduced constants and automatic scrolling when needed