Fix links
Only show contents tab for books
Listen to specific events only