Fixed bugs with in view layouts. Also allowed them to be defined only with text instead of having to create a view object first.