Modify backgroundtask and page authentication.