Created onLoad, createPost, addComment and likePost functions