Removed extra code in template