Extracted view functionality to helpers.