fixing choosePage