implementing no scrolling hack