Implemented recording
Used getActivity in record fragment