attempting to append port details by click event