updated the floating trash

updated the floating trash and simplified the code.