Change layout formatting for different backgrounds