pin dialog & functionality