Renamed function parameters to something usable. Fixed potential event leaks.
Attach a file by drag & drop or click to upload