Moved the custom calendar to a directive