Handling modal controls and some responsive work