make window closeable
render a triangle