changing up controller error method