several UI fixes and improvements for UI Media plugin gallery feature