Fixed alt-tab

Made major changes.