add logic to the app