update: remove unnecessary calls of show/hide window