add grid to MainPage & to determine whether use jqueryui