updated post function
added visual confirmation with showMessage