added code to handle position offsets related to adding headers to the table view when using adapters for android