Added functions in widget trait