user action trigger change ambiguous variable to macro form
add window_id as a arguement to getPeriodExtendedWindow