Added "Actions Menu" to files and directories, refactoring