made home page more flexible