Toggle Last App: move toggle last app...

…method to a separate class

Change-Id: Iec1aa13aa5fbbc53b4d166e6fe3b10b3f1ef9dca