adding alert view for displaying api call outcome