First commit - created preview post functionality