fixed php opening and closing tags in pages handling building the json data for the admin pages