added directive attribute - function which could change the output (mainButtonStr) accroding to the selected date