created function open_file, added option to the menu line and elseif statement