Fixed issue with view.replaceClass and view.removeClass