add toggle button for direction