fixed links and added routiing functionality