added background and improved hover function