Using disabled function to create disabled attr