+ added packages and getters and setters to widget class