preparing to refactor gui