added restart button and jquery stuff