Updated variable names, added actionlisteners, created TaskDialog.