added comments and some js for decline