added functions for courses buttons, added transition animation for all buttons