add filtering and sorting in photo page, small fix in UI