implement the functions in frmWindowInput