Make acticve/inactive status dynamic