use defferred in home view
refactored
refactored