Functions added for showing Alert and Crash activity