initial steps of GUI