add destroy functional and better connection
add functional view