added functions to app class