added remove button scope function