fixed submit bar logic