refresh layout and add theme