cleaned up code after implementing text scroll