-Fixed redeclaring bug in post preview page