Rendering issues

This PR fixes the issues discovered by @gusferguson during 5.1-m1 testing.
Still work in progress; fixed so far:
* Various issues that the 'paste' action is disabled when it actually should be enabled.