Add label rotation functionality