Add filters for in and out and restructure index page