add custom directive for calculator