Moved script loading to corresponding html files
Fixed pages refresh on delete