implement calendar component in form