First implementation of UI and file handling