adding all routes view logic