Add functional view for index