removed this.render from the view files; render will be called from inside the swap function