fixed crashes when rotating device
now retrieves the activity from fragment and doesn't pass it from the outside