added offer code,added rule link to table,refactoring, static rule admin page