added dynamic calculation of title
added text shadow attribute