Added cap task for rebuilding activity