refact dialog, add long press dialog on blocks