Fixed serverals Function. and Css issues.