prevents browser scrolling and fixes #2