change index routes to use post lib