created seperate file for gui