gave a initial size to window
commit entry content when no item suitable