Fix scoping issue
Fix edit element order
Fix out of date variable name
Use get_status to update sample count after erase
Use TQueue for requests instead of TMVar