added clockpicker function