modifications to ebook models before save function