Customize scrolling behaviour and close button