renamed to use php functions on webpage