kinda working add book functionality