Added functionality to the view component