Restricted page access. did some style changes. refactored html for idoubtit. wrote tests for stuff.