Added afterRender hook to View