pause camera function added