Fix form and grid pagination style bugs.