BugDetails controller initial and misc refactorings