added minimize function to bottom bar