Adds preferences window