fixed issue related to adding new and filtering