beginning of submit layout