add custom directive for horiztonal form