Fixed the cog positioning and centered table cells for better alignment, fixes #9283