* fix: recording btn visible bug * fix: check for showRecordingButton * refactor: create a reusable function