Adding action bar code
end of chapt 6