change range_enter to ng_changed, simplify functionality by binding to change event