made profiles viewable publicly and refactored views