removing view and viewport