changed Activity to Context in few methods