Used checked function instead of using if condition for displaying checked attribute
Merge pull request #135 from vinodvdalvi/master

Used checked function instead of custom code for checked attribute