define method for edit action in amoeba controller