added buttons for motion detection