refactored BooksController in mobile app