Revert the change to view#setElement which breaks stuff