sets default port. rebuilds ui better. was losign query string