added filtering to photo and user actions