added controller logic for 'goal due by'