moved submit function to common module -> smaller plugin implementation