fixed css and added javascript