Modified the controller by chaininng the functions and created two directives for book-genres and book-cover