Changed the way DebugFrameView was used

Changed how DebugFrameView was used because previous implementation for
very buggy and laggy in case of several view controllers.