init for shortcut and application