extracted actions' popup building into separate methods