Added answer using ajax and checkbox controls