Working version with function based views setup