save door values into db.
add css class with condition
return proper state from json response
detect ajax success
add css class to open close links