refactor Books controller & helper