changed functions, added html things in js, some styling etc.