adding remove queue to rectangle listeners