make ui nicer and add programatic slider setting