set layout to be layout.to_sym instead of nil