adding callback stuff for activity/fragment