Added some functionality various PHP pages