implement basic functions for sellings index page including tests