setting button with dialog for IP and db options