Guessing layout, some code, main screen code added