fixed delete works,replay button proper,change description to qestion, code simplification by: variable eduction, create more functions, remove unappropriate global vars,descriptive var names