added users controller to handle edit