Functionality for showing diff based on line widgets, still a few issues to fix though