added link support and fixed some styles