click to take snapshot