update top bottom css and logic