REFACTOR - abstracted the date button so that code is reused