Made workflow tab close on submit, removed unneeded code