change all Page to Rectangle to set ground for enabling conditional layout