add method for already shown windows