gave up on modal form. Made slidetoggle. Rotate uses buttons now and field is readonly.
fixed rotate's readonly tag