remove submission logic from render