fixed bugs on home layout