added dynamic home page, and fixed previous issue from last commit