Modified visibility and access to contest tabs. Refactored some xhpy. Fixed minor bug in log entry.