working on binding with elem and attr