added tests for links
finished with links and layout