freeze ui after submit