Adding current selected periods into template