fixed minor bugs during tab switching in post page