edit and update are finally working appropriately. still need to abstract out from controller methods.