added error handler to flexigrid call