Fixed delete view handler