added snippet to make popups responsive