Adding rotation handler