#45: Created a function to fetch events depending on planner screen selections