made the modals work