accepting input and showing addresses in table