added real-time post preview