fixed issue with page lenght, and modified the decide() in sim user