replacing buttons for taking photos and sending data with swipe events