Removed unwanted return. Also, alert will now be displayed properly.