fixed styles and added counter