change home page from static to dynamic