added getters and setters for the view