Function openCustomTimeframeDialog