have to add delegate method to willactivate