added simple preview box, updated based on input