ajax view cleanup