show/hide windows working correctly