added main layout and recordingclass