Create new code for GUI

Reorganized code with file browser open functionality