implemented convertion direction toggle