Calculate PI function
many css changes