incorporated submit functionality