Added the possibility to open files via a menu action