adding modal trigger on edit links and added new file function