fix timestamp bug and popup window position problem