reports design update

also some error correction and cosmetics in php files