added trash funcionality