replaced erase with slider