optimize page rendering
use css for page transition