I recommend to make a new method in appWindow to do this instead of touching its element directly.