update css and add register