JQGrid added search, csv export, some code refactoring