added xml rest functionality, changed the index functionality frim json t views