starting with a GUI, transfering functions from the old funtion