close view when request is processed