added function to start and stop camera recording