added minimize button,
added border and background to the preferences panels