Refactored edit handlers in files for readability. Added public link functionality. Shared files tab now functional