wired up form on popup