adding useful macros to handle system versions
only allow editing when purchased feature
add shop only to iOS 6 and up
done item only on iPad
reindent