add and remove widgets through ajax