#8 added id and status in template
#8 fixed bug during updates