rename modal dialog views and move under threads view directory.
add hasLink method to thread model to check whether a thread has a link with a given url.