properly remove main screen at each update