added css. moved code from index to app