autohide datapicker, when date is selected