Optimized layout in angular
Check to see if value is not zero
Added history