small fixes for modal-window