added section for error handling
added id for content to identifiy page
use courseid instead pageid
restructered code, PageView handles all events now