add view hooks