moving date selector code to its own file and adding quarters