Changed the dynamically created buttons' background resource.
Implemented state change clickable dynamic buttons.