solved small bug regtableview flag not going away