added closing php and fixed spacing