Adding better state handling for the action buttons start/stop