beforeShow for positioning date picker