complete books view refactor