improved control location
removed some options when size is smaller than the options.
Merge branch 'hotfix/fix_page_lengths_opt'