Added the part for editing the year field