fixed bug in AppTracker & simplified code to find shortcut for currently active app.