added configurable port number to the view