added submit back fixed preview problems