bug fix for styles
change script for vertical orientation