converted add file and note into modals