Adding array search function
Adding path to page matching