made browser action close after hitting submit