edit button only enabled if form is valid and not pristine
removes unused template
changes app.user.detail to app.user state