Added invalid_app_id error code
Added the ability to handle the 'select app id' screen
use new shortcut method in main file