added remove functionality to boxes