Define widget rendering in a view so it can be easily overrided