fix edit button on view details. issue 166