added rules, search and some buttons