Changed popup edit/save button behaviour and popup appearence in detail view.