Common layout implementation