remove use of deprecated FormLib