check page limit for list module
format code