fix for issue #11, also improved how UI works when save gets error, now it refreshes the entity, there is also added a refresh button to detail view