Made modal window responsive when scaling
bug fixes for repsonsive modals