Added __bindEvents function to make defining event handlers on views easier