Add gene density field to calculations panel

some cleanup as well