add feature: press button to take snapshot