bug fixes in pages UI