created javascript polling and fixed routing and activity deletion errors