Added json views for create, edit and index