update css and logic for pm, not completed