Added methods to widget and layout parameter for caching purposes and behavioural problems