added highly inefficient implementation of links. Some pages cause crashes.
added TODO item