added more styles and code taken from adminx