small events xhr bug fix, conditional check on current view in render method