added button functionality, polyline tap changes