added layout parameters to the template
add LocalServiceConnection.run