move code to css file