added link add and view function