Adding tab change and alert after form submission