history and preferences dialog added