Rename file

Added the rename functionality when pressing F7.
Moved the file operation functions to file_operations.