some php and css refinements