AIR app shared functions