added feature to change port thru UI