add rotate button for api