css changes and fixed query