removed wrong placed noutrefresh()