prevent scrolling buttons and path