made button work in calendar