Revert removal of manually-added code in designer