fix PHP error when search for a page in the composer list, fixes #6
code cleanup