changed context to activity, does not work with Dialog messages