fix for refresh of home page