sql replication connection strings - some code refactoring and better expereince in different hosting window and screen sizes