added bar animation, refactored

Signed-off-by: coderneosmith <coder.neo.smith@gmail.com>