Moved switch to frame in app obj