functions .php in app