update views and response code