added div tags for page elements
added javascript code to generate simple alert and recovery events