add bootstrap plus ajax change status plus state machine