Added frame layout.

Layout is not fully implemented yet and it needs work.