adding api communication
added css to opinion show page
refactoring