map switch buttons implemented