now handles two buttons, deleted unwanted files