binding entity
added momentjs and improve dialog