changed the contructor of resource and modified the control class and
view class Navigation