Added didUpdate and didInsert hooks for views