map left and right for gui code added