change to form plugin
Convert Moderate function to Form lib