Integrated angular-ui-router plugin, refactored the master-detail logic, added read-write input text directive