some jqgrid refactoring