pass application context to callback function so that can use Toast