Button states flickering (angularjs) #101