updated the comments, added disabled and focus state for the component