make layout view optional