add dynamic gridValue, add onClick option, change xGrid