added couple functions to view interface.