Added a button condition to mouse transitions