Code with working tabs and edit and delete links