update layout - header and footer
fix - logic error in commit model