moving book function from route to controller
fixing conflict