modals working, before saving to db