Preview working. Implement submit