changes to homepage to make it dynamically