added spin control and demo page