#30000 refactor home controller

@texasag , @prabinv and @hippee-lee Please code review.