auto close after submit some styling