controller change

created common controller to have all common methods which can be
extended