submit buttons only work when data is present