Formbuttons to switch between form and details view

"Save and details" button in form view returns the details view of just submitted or edited form data. 
"Edit" in details view. offers direct way to edit the data. Visible only if user is allowed to edit this form data. 

EDIT: Well, now only the needed commit is visible. Remade  this branch in my computer and updated with "forced update" option.