adding modal trigger on edit links and added new file function

Adding modal trigger on edit links and added new file function.