trying to merge
checks for button clicks on the ui and cancels pheromone placement