updated spacing and added click events