re-arrange ordering of methods in header. Only set delegate for alert view if necessary.