theres a few reasons why this happens, none of them make sense, so I won't list them right now. suffice it to say, this will happen sometimes.
the solution is simple though, in the project bar(on your screenshot, it's on the bottom right), expand the application 1, then double click the event sheet, and the layout. usually the first one you double click will restore sanity