fixed scoping on document remove open click handler