adding element controller