tidy up app delegate and wards