bz1063273 - properly enable/disable remove ui button

bz1063273 - added destroy method

bz1063273 - added test, cleaned up based on comments
Merge pull request #3676 from thomasmckay/bz1063273

fixes #4993, bz1063273 - properly enable/disable remove ui button"