Fixed problem with default period change event. Add close button to tabs