add indent function to view