Diff viewer

Added a close view button.
Text was awkwardly changing from Unified Diff to Patch after the first click. Fixed this issue.