setting up books controller