Refactored preview functionality, removing useless complexity. Downside is page position is lost when clicking preview button from editing a post. Deal with it.