Add build state in build template