Updated php pages for better use