How to dynamically filter submissions?