adding code to app