Fixed some api urls and views definitions