added autocomplete limit and error handling to page selector