UI update

ui and its data model has now been updated to create states and rules