change style and add some controll variables