set up action detection