fixed white space and changed scroll code