turning gui functionality added