updated url patterns to make things more modular. Also gave the view endpoints names.