added add book and save book function listeners