filter content for add and edit