added another program that creates windows if needed, added button to pain