bind function to app context when using app.fn