ui changes to work with ssl server

Please review.