adding angular js views and the rest form states