Fixed responsive design bugs

Fixed bug with re-attaching events when stylesheet reloads