fixes ff bug for selects adds mrkup for modals