added error method to i-router