Added functionality to draw arrow buttons