fixes issue with the publishing date
further improves application controller