Add functionality to motion detection buttons
Add functionality to motion detection buttons