trying to redo the app to make controller works