codes for our app