filters on fragment type on 'add' and 'edit' popup in order to avoid to add fragments which are not in the page