moved style from javascript to css