Adding open file functionality from menu options.