refactored clockpanel to clock