modified main rb for routing almost, completed page