finished up delete api and view