Changed logic for displaying equals sign