took out prevent default on beginCamera function.