fix design, security and add course model