onclick 2 windows open fix