xstart button and alarm logic