add search and order functionality in media