add ajax with state shown