add frames and fix detail button action