added button control and fiddled with persistant data