Changed the direction of closing tabs