Yes I did go with this approach of having 2 components although @chrudimer 's solution looks like it would be more elegant.