fixed minor bugs in post dialog view