fix conflict in layout page and display class in home page