added function to submit links