Fix pagetop marking bug in codexlayout
Minor changes to dialog styling