Apply review comments

Bind events to document instead of body
Fix css styles