Refactored with right way to do views in emberjs