updated events code for book button