took out function based view