Added more control for RTU device

Checked the validity of ip address
Set up a caption to better using the
page