cleans up remove view function in router