added layout adapter for non list view