fixing viewport and adding end scene