update to css and refractoring of a dao method