added functionality and styling to learn.php