Adding funcionality to details